Index: display.c
===================================================================
RCS file: /mnt/ncvs/src/contrib/top/display.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- display.c	1999/01/09 20:20:33	1.4
+++ display.c	2000/10/04 23:34:16	1.5
@@ -829,7 +831,7 @@
     register int i;
 
     /* first, format the message */
-    (void) sprintf(next_msg, msgfmt, a1, a2, a3);
+    (void) snprintf(next_msg, sizeof(next_msg), msgfmt, a1, a2, a3);
 
     if (msglen > 0)
     {
Index: top.c
===================================================================
RCS file: /mnt/ncvs/src/contrib/top/top.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- top.c	1999/01/09 20:20:34	1.4
+++ top.c	2000/10/04 23:34:16	1.5
@@ -807,7 +809,7 @@
 				{
 				    if ((errmsg = kill_procs(tempbuf2)) != NULL)
 				    {
-					new_message(MT_standout, errmsg);
+					new_message(MT_standout, "%s", errmsg);
 					putchar('\r');
 					no_command = Yes;
 				    }
Index: top.c
===================================================================
RCS file: /mnt/ncvs/src/contrib/top/top.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- top.c	2000/10/04 23:34:16	1.5
+++ top.c	2000/11/03 22:00:10	1.6
@@ -826,7 +826,7 @@
 				{
 				    if ((errmsg = renice_procs(tempbuf2)) != NULL)
 				    {
-					new_message(MT_standout, errmsg);
+					new_message(MT_standout, "%s", errmsg);
 					putchar('\r');
 					no_command = Yes;
 				    }
